package com.mac.ResearchResults;

import com.mac.pojo.ResearchResults;
import com.mac.service.ResearchResultsService;
import org.junit.Test;

import java.util.ArrayList;

public class test {
    ResearchResultsService researchResultsService = new  ResearchResultsService();
    @Test
    public void selectAllResults(){

        ArrayList<ResearchResults> researchResults = researchResultsService.selectAllResearch();

        System.out.println(researchResults);
    }

    @Test
    public void selectOneResult(){

        int resultId = 1;

        final ResearchResults researchResult = researchResultsService.selectOneByResultId(resultId);

        System.out.println(researchResult);
    }
}
